/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface.Player;

import Jastermind.Player;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JDialog;

public class JDialogPlayerStats extends JDialog{
    public  JDialogPlayerStats(Player player){
        super();
       this.setModal(true);
        this.setLayout(null);
        this.setSize(400, 130);
        this.setResizable(false);
        this.getContentPane().setBackground(Color.WHITE);
        Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
        this.setLocation((int) (screenDimension.getWidth() - this.getWidth()) / 2, (int) (screenDimension.getHeight() - this.getHeight()) / 2);

        //*********************** Titre ***********************
       this.setContentPane(new JPanelPlayerStats(player));
       this.setVisible(true);
    }

}
